<template>
  <van-cell>
    <van-button color="#7232dd" @click="throttled(handleThrottled, '1.5S内只输出一次')"> 点我测试节流 </van-button>
  </van-cell>
  <div class="flex justify-center">demo</div>
</template>
<script lang="ts" setup>
import { getListApi } from '@/api/demo'
import { throttled } from '@/utils/lodash'
const handleThrottled = async (text: string) => {
  console.log(text)
  await getListApi({})
}
</script>
